package com.mxf.code.abstract_factory;
 
import lombok.Getter;
import lombok.ToString;
 
/**
 * @author zhangyifeng
 * @date 2021-10-16 16:52
 */
@Getter
@ToString
public enum PersonEnum {
    /**
     * 老师
     */
    TEACHER(10),
 
    /**
     * 校长
     */
    HEADMASTER(20);
 
  
 
    private final int code;
 
 
    PersonEnum(int code) {
        this.code = code;
    }
 
}